package org.tinyweb.render;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class Render {
    private static String encoding = "utf-8";
    protected String view;
    protected static HttpServletRequest request;
    protected static HttpServletResponse response;
    
    protected static void init(String encoding){
        Render.encoding = encoding;
    }
    
    public static void setContent(HttpServletRequest request,HttpServletResponse response){
        Render.request = request;
        Render.response = response;
    }
    
    public abstract void render();

    public static String getEncoding() {
        return encoding;
    }
}
